package com.uduew.sjd.api;

import static com.uduew.sjd.config.Const.REPAYMENT_METHOD;

import androidx.annotation.NonNull;

import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestBodyStrategy;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.RequestBodyType;

import java.util.ArrayList;


public class RepaymentMethodApi implements IRequestApi, IRequestType {

    private ReqRePaymentMethodBean overripe;

    public RepaymentMethodApi(String cindy) {
        this.overripe = new ReqRePaymentMethodBean(cindy);
    }

    @NonNull
    @Override
    public String getApi() {
        return REPAYMENT_METHOD;
    }

    /**
     * 获取参数的提交类型
     */
    @NonNull
    @Override
    public IRequestBodyStrategy getBodyType() {
        return RequestBodyType.JSON;
    }

    public static final class ReqRePaymentMethodBean {
        private String cindy;

        public ReqRePaymentMethodBean(String cindy) {
            this.cindy = cindy;
        }

    }

    public static final class ResRePaymentMethodBean {
        private ArrayList<MethodsBean> methods;

        public ArrayList<MethodsBean> getMethods() {
            return methods;
        }
    }

    public static final class MethodsBean {
        private boolean isSelected;
        private String bacchii;
        private String buckthorn;
        private String kill;
        private String reluctant;
        private String satisfy;

        public boolean isSelected() {
            return isSelected;
        }

        public void setSelected(boolean selected) {
            isSelected = selected;
        }

        public String getBacchii() {
            return bacchii;
        }

        public String getBuckthorn() {
            return buckthorn;
        }

        public String getKill() {
            return kill;
        }

        public String getReluctant() {
            return reluctant;
        }

        public String getSatisfy() {
            return satisfy;
        }
    }
}